package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsApInvoiceLine;
import com.yudean.esb.mapper.erp.ErpIdsApInvoiceLineMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpApInvoiceLineDao {

    @Resource
    public ErpIdsApInvoiceLineMapper erpIdsApInvoiceLineMapper;

    public int insertSelective(ErpIdsApInvoiceLine record) {
        return erpIdsApInvoiceLineMapper.insertSelective(record);
    }

    public int batchInsertErpIdsApInvoiceLineData(List<ErpIdsApInvoiceLine> erpIdsApInvoiceLineList) {
        return erpIdsApInvoiceLineMapper.batchInsertErpIdsApInvoiceLineData(erpIdsApInvoiceLineList);
    }

    public int deleteApInvoiceLineByControlId(long controlId) {
        return erpIdsApInvoiceLineMapper.deleteApInvoiceLineByControlId(controlId);
    }
}

